<?php echo $this->Html->css('form'); ?>
<?php echo $this->Html->css('add_category'); ?>
<?php echo $this->Html->css('manufacturer'); ?>
<?php echo $this->Html->css('jquery.mCustomScrollbar'); ?>
<?php echo $this->Html->script('jquery.mCustomScrollbar'); ?>
<?php echo $this->Html->script('jquery.mousewheel.min'); ?>

<div class="form_wrapper">
	<div class="title">We're currently selling products of the following manufacturers</div>
	<ul>
		<?php $t = 0; foreach ($manufacturers as $m) { ++$t; ?>
		<li <?php if ($t % 2 == 1) {?> style="background-color:#CFCFCF" <?php } ?>>
			<ul class="itemList scrollItem">
				<li class="itemInfo"><?php echo $t ?></li>
				<li class="itemInfo"><?php echo $m['Manufacturer']['name'] ?></li>
				<li class="itemInfo">
					<?php if (is_null($m['Manufacturer']['id'])) { ?>
					Not provided
					<?php } else { ?>
					<a href="<?php echo $m['Manufacturer']['url']; ?>">Link</a>
					<?php } ?>
				</li>
				<li class="itemInfo"><?php echo $m['Manufacturer']['description'] ?></li>
				<li class="itemInfo"><a href="<?=$this->webroot.'manufacturers/delete/'.$m['Manufacturer']['id']?>">Delete</a></li>
			</ul>
		</li>
		<?php } ?>
	<ul>
	<a class="button" href="<?=$this->webroot.'manufacturers/add'?>" style="font-family:'Open Sans', sans-serif">Add a manufacturer</a>
</div>
<div style="float:none"></div>
<script>
$(window).load(function(){
	$('.scrollItem').mCustomScrollbar();
});
</script>
